package com.zj.mq.demo.service;

import com.zj.mq.demo.entity.Order;

import java.util.List;

public interface OrderService {
    Order addOrder(Order order);

    boolean pay(Integer id);

    boolean timeout(Integer id);

    List<Order> timeoutCancelOrder(String username);

    Order getById(int i);
}
